#ifndef _UESMEMORY_
#define _UESMEMORY_

#include "uescript.h"

#define UES_DEBUGMEMORY	0

// Definitions for memory management
#include <malloc.h>

enum eTags
{
	TAG_FIRST,
	TAG_LAST=0xFF
};

// Memory functions
void*	UES_TagMalloc(unsigned char tag, size_t memsize);
int		UES_TagFree(void* memptr);
void	UES_TagFreeAll( unsigned char tag);
size_t	UES_TagGetTotalUsage(unsigned char tag);
unsigned int	UES_TagGetNumberOfEntries(unsigned char tag);

#endif //_UESMEMORY_